import java.util.*;
public class Solution {
    public static int StrToInt(String str) {
        int ret = 0;
        if(str.charAt(0)=='+' || str.charAt(0)=='-'){
            for(int i = 1; i < str.length(); i++){
                int num = str.charAt(i)-'0';
                if(num < 0 || num > 9){
                    return 0;
                }
            }
            for(int i = 1; i < str.length(); i++){
                int num = str.charAt(i)-'0';
                ret = ret*10 + num;
            }
            return ret;
        }else{
            for (int i = 0; i < str.length(); i++) {
                int num = str.charAt(i)-'0';
                if(num < 0 || num > 9){
                    return 0;
                }
            }
            for(int i = 0; i < str.length(); i++){
                int num = str.charAt(i)-'0';
                ret = ret*10 + num;
            }
            return ret;
        }
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        if (s.length() == 0) {
            System.out.println("0");
        } else {
            int temp = StrToInt(s);
            String ret = "" + temp;
            if (s.charAt(0) == '-') {
                ret = "-" + ret;
            }
            System.out.println(ret);
        }
    }
}